# -*- coding: utf-8 -*-
#!/usr/bin/python

# messages.py

import wx

'''
MyMessages class
@author: Edgar Pereira from code http://zetcode.com/wxpython/dialogs/
'''

class MyMessages(wx.Frame):
    def __init__(self):
        pass
        

    # message = the message you want, title = the title of the Dialog
    def ShowMessage1(self, message, title):
        dial = wx.MessageDialog(None, message, title, wx.OK | wx.ICON_INFORMATION)
        dial.ShowModal()

    def ShowMessage2(self, message, title):
        dial = wx.MessageDialog(None, message, title, wx.OK | wx.ICON_ERROR)
        dial.ShowModal()

    def ShowMessage3(self, message, title):
        dial = wx.MessageDialog(None, message, title, wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION)
        dial.ShowModal()

    def ShowMessage4(self, message, title):
        dial = wx.MessageDialog(None, message, title, wx.OK | wx.ICON_EXCLAMATION)
        dial.ShowModal()